package enum

import "fx_swift_ifcgate/api"

func GetTurvoner(code int) string {
	switch code {
	case 0:
		return "0-10万美金"
	case 1:
		return "10万到100万美金"
	case 2:
		return "100万到1000万美金"
	case 3:
		return "1000万到1亿美金"
	case 4:
		return "1亿以上美金"
	case 5:
		return "未能提供"
	}
	return ""
}

func InitTurnover() ([]*api.TurnoverRes, error) {
	turnover := []*api.TurnoverRes{
		{Code: "0", Desc: "0-10万美金"},
		{Code: "1", Desc: "10万到100万美金"},
		{Code: "2", Desc: "100万到1000万美金"},
		{Code: "3", Desc: "1000万到1亿美金"},
		{Code: "4", Desc: "一亿以上美金"},
		{Code: "5", Desc: "未能提供"},
	}
	return turnover, nil
}
